package IMIC.DOTHEVINH.OOP.EXERCISES.LEVEL02.EXP4;

import IMIC.DOTHEVINH.OOP.EXERCISES.LEVEL02.EXP3.SquareEntity;

public class Controllers {
	private Models models;
	private RectangleEntity rectangleEntity;
	
	public Controllers() {
		models = new Models();
		rectangleEntity = new RectangleEntity();
	}
	public double CaculateArea(RectangleEntity rectangleEntity) {
		return models.Area(rectangleEntity);
		
	}
	public double CalculatePerimeter(RectangleEntity rectangleEntity) {
		return models.Perimeter(rectangleEntity);
		
	}
	public String RecColor(RectangleEntity rectangleEntity) {
		return models.Color(rectangleEntity);
		
	}

}

